﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Pibby.Core.Logging
{
	public enum LogMessageType
	{
		Ok,
		Info,
		Warning,
		Error,
		Fatal
	}

	/// <summary>
	/// Used to pass log information back from other threads/background workers
	/// </summary>
	public class LogMessage
	{
		#region Constructors

		public LogMessage()
		{
		}

		public LogMessage(string message)
		{
			this.MessageType = LogMessageType.Info;
			this.Message = message;
		}

		public LogMessage(LogMessageType type, string message)
		{
			this.MessageType = type;
			this.Message = message;
		}

		#endregion Constructors

		#region Properties

		public LogMessageType MessageType
		{
			get;
			private set;
		}

		public string Message
		{
			get;
			private set;
		}

		#endregion Properties
	}
}
